package com.test2;

import com.test.Res;

/*****
 *输出线程
 */
public class OutThread  extends Thread {
	public Res res;

	public OutThread(Res res) {
		this.res = res;
	}

	@Override
	public void run() {
		while (true) {
			    synchronized (res) {
			    	System.out.println(res.userName + "--" + res.userSex);
				}
				
		}
	}
}